#ifndef COMPILER_ONLINE
#include "header.cpp"
#endif


void Test1()
{
    // 通过定义临时对象，来完成方法的调用
    vector<vector<int>> vv= {{1,3,1},{1,5,1},{4,2,1}};
    int ret = Solution().jewelleryValue(vv);
    if(ret == 12){
        std::cout << "通过 [用例1] : [[1,3,1],[1,5,1],[4,2,1]] " << std::endl;

    }
    else{
        std::cout << "失败 [用例1] : [[1,3,1],[1,5,1],[4,2,1]] "  << std::endl;
    }
}

void Test2()
{
    // 通过定义临时对象，来完成方法的调用
    vector<vector<int>> vv= {{5,3,2},{6,3,2},{5,2,3}};
    int ret = Solution().jewelleryValue(vv);
    if(ret==21){
        std::cout << "通过 [用例2] : [[5,3,2],[6,3,2],[5,2,3]] " << std::endl;
    }
    else{
        std::cout << "失败 [用例2] : [[5,3,2],[6,3,2],[5,2,3]] "  << std::endl;
    }
}

int main()
{
    Test1();
    Test2();

    return 0;
}